<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of User_model
 *
 * @author BABAI
 */
class User_model extends Model{    
    function __construct() {
        parent::__construct();
    }
    function getUsers(){
        return $this->db->get("users");
    }
    function getUser($id){
        //return $this->db->get("users", "*", array("uid"=>$id));
        $sql = "SELECT * FROM ".$this->dbPrefix."users WHERE uid='$id'";
        return $this->db->getRow($sql);
    }
    
    function addUser($data){
        
    }
    function edit($data, $id){
        
    }
}

?>
